package com.itheima.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {

    /**
     * @description： 根据条件查询用户
     * @date：2024/3/14  16:59
     * @return：
     **/
    @Select("select * from user ${ew.customSqlSegment}")
    List<User> findByCondition(@Param("ew") Wrapper<User> queryWrapper);
}
